Motion-triggered NMES training protocol